@props(["route" => "#", "icon" => "", "title" => "", "type" => ""])

@if ($type)
    <li class="breadcrumb-item active" aria-current="page">
        <span>
            @if ($icon)
                <i class="{{ $icon }}"></i>
            @endif

            {{ $slot }}
        </span>
    </li>
@else
    <li class="breadcrumb-item">
        <a href="{{ $route }}">
            <i class="{{ $icon }}"></i>
            {{ $slot }}
        </a>
    </li>
@endif
